#pragma once
#include "uiwin.h"

class UiEditZoom :	public UiWin
{
public:
	UiEditZoom(void);
	virtual ~UiEditZoom(void);
	virtual void PaintWin(HDC hdcDst, RECT* prcWin, RECT* prcUpdate);
	void UpdatePos(int nCenterX, int nCenterY);
	void SetRelatedEdit(UiWin* p){m_pRelatedEdit = p;}
	void SetBitMap(HBITMAP hbm){m_hBitMap = hbm;}	
	HBITMAP GetBitMap(){return m_hBitMap;}
private:
	ImagingHelper m_ihZoomhi;
	ImagingHelper m_ihZoomlo;

	int m_nCenterPosX;
	int m_nCenterPosY;
	HBITMAP m_hBitMap;
	HBITMAP m_hBitMapMask;
	UiWin* m_pRelatedEdit;
};
